# Maintainer: Jerome Leclanche <jerome@leclan.ch>

pkgname=xonsh
pkgver=0.13.4
pkgrel=2
pkgdesc="Python-powered, cross-platform, Unix-gazing shell"
url="https://xon.sh/"
arch=("any")
license=("BSD")
depends=("python" "python-ply" "python-setproctitle")
optdepends=("python-prompt_toolkit: support for SHELL_TYPE=prompt_toolkit")
makedepends=("python-setuptools" "python-wheel")
source=("https://github.com/xonsh/xonsh/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
install=xonsh.install
sha256sums=('732ae5a6a6b484b4417fdda4634a2dbd24fb004c95fe7fc25bc1c5db4a494cad')

package() {
	cd "$srcdir/$pkgname-$pkgver"
	python setup.py install --root="$pkgdir"
	install -Dm644 license "$pkgdir/usr/share/licenses/$pkgname/license"
}
